package com.mao.demo;

public class Test {
    public static void main(String[] args) {
        Movie[] movies = new Movie[6];
        //movies = [null,null,null,null,null,null]
        movies[0] = new  Movie(1,"《大话西游》",20,"吴孟达");
        movies[1] = new Movie(2,"西游记",20,"吴孟达");
        movies[2] = new Movie(3,"《龙猫》",20,"宫崎骏");
        movies[3] = new Movie(4,"《战狼》",20,"吴京");
        movies[4] = new Movie(5,"《海贼王》",20,"宫崎骏");
        movies[5] = new Movie(6,"《西游记》",20,"吴孟达");


        MovieOperator mp = new MovieOperator(movies);
        mp.printAllMovie();
        mp.searchMoviebyId();
    }
}
